#pragma once
#include <list>
#include <osg/Vec3d>
class LowPass
{
public:
	LowPass(int size);
	~LowPass();
	void add(osg::Vec3d value);
	osg::Vec3d get();
	void reset();// { filter.clear(); }
osg::Vec3d	getAvg(osg::Vec3d value);

	private:
	std::list<osg::Vec3d> filter;
int n;
osg::Vec3d __avg;

	int _size;
	osg::Vec3d avg;
};

